<template>
  <TbTitle title="九、上年度整改情况表" />
  <TbTitle :myStyle="myStyle" title="（未参加上年度年检或上年度年检结论为基本合格的填写）" />
  <p class="check-result" v-if="lastYearResult == '1'">上年度年检结果: 合格</p>
  <div v-else>
    <p>1、造成未参检（或基本合格）原因</p>
    <el-input type="textarea" v-model="detailInfo.reason" style="width: 100%" :rows="10" disabled placeholder="" />
    <p>2、整改措施</p>
    <el-input type="textarea" v-model="detailInfo.measure" style="width: 100%" :rows="10" disabled placeholder="" />
    <p>3、整改效果</p>
    <el-input type="textarea" v-model="detailInfo.effect" style="width: 100%" :rows="10" disabled placeholder="" />
  </div>
</template>
<script setup lang="ts">
import TbTitle from '@/views/yearCheck/components/TbTitle.vue'
import { ref, reactive, inject } from 'vue'

const lastYearResult = ref()
const myStyle = reactive({
  'margin': 0
})

let detailInfo = reactive({})
const { getDetailInfo } = inject('getDetailInfo')

getDetailInfo().then(res => {
  Object.assign(detailInfo, res.data)
})
</script>
<style lang="scss" scoped>
.msg-tip {
  padding: 20px 0;
  color: #000;
  font-family: '微软雅黑';
}

.check-result {
  color: red;
  font-size: 20px;
  text-align: center
}
</style>
